package com.example.codereview;

import com.intellij.openapi.actionSystem.ActionGroup;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * @author xianfeng
 * @date 2024/11/7 19:18
 * @description:
 */
public class DynamicActionGroup extends ActionGroup {



    @Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) {
        return new AnAction[]{
                new PopupDialogAction(
                        "Action Added at Runtime",
                        "Dynamic Action Demo",
                        null)
        };
    }
}
